﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BookList.aspx.cs" Inherits="BookShop2.BookList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
        <div>
            <asp:Repeater ID="rptBooks" runat="server">
                <HeaderTemplate><h1></h1></HeaderTemplate>
                <ItemTemplate>
                    
                    <img src="<%# Eval("ImgUrl") %>" />
                    书名：<%# Eval("BookTitle") %>
                    <br />
                    作者：<%# Eval("BookAuthor") %><br />
                    出版日期：<%# Eval("PublishDate","{0:yyyy-MM-dd}") %>
                </ItemTemplate>
                <SeparatorTemplate>
                    <hr />
                </SeparatorTemplate>
            </asp:Repeater>
        </div>
    </form>
</body>
</html>
